
from sqlalchemy import Column,Integer ,String,Boolean
class User():#业务模型
    id=Column(Integer,primary_key= True)#autoincrement自增长
    nickname=Column (String(24),nullable= False)
    phone_number=Column(String(18),unique=True)
    _password=Column ('password',String(256),nullable= False )#指定字段名为password
    confirmed=Column (Boolean,default= False)

